<?php

use Carbon\Carbon;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class ProjectsTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
    	$projects = [
    		[
    			'name' => '花园城一期',
    			'company_id' => 1,
    			'address' => '上海市嘉定区花园城一期',
    			'longitude' => 120.34366,
    			'latitude' => 35.32444,
    			'radius' => 300,
    			'created_at' => Carbon::now(),
    			'updated_at' => Carbon::now()
			],[
    			'name' => '花园城二期',
    			'company_id' => 2,
    			'address' => '上海市嘉定区花园城二期',
    			'longitude' => 120.44366,
    			'latitude' => 35.32444,
    			'radius' => 300,
    			'created_at' => Carbon::now(),
    			'updated_at' => Carbon::now()
			],[
    			'name' => '花园城三期',
    			'company_id' => 3,
    			'address' => '上海市嘉定区花园城三期',
    			'longitude' => 120.54366,
    			'latitude' => 35.32444,
    			'radius' => 300,
    			'created_at' => Carbon::now(),
    			'updated_at' => Carbon::now()
			],[
    			'name' => '花园城四期',
    			'company_id' => 4,
    			'address' => '上海市嘉定区花园城四期',
    			'longitude' => 120.64366,
    			'latitude' => 35.32444,
    			'radius' => 300,
    			'created_at' => Carbon::now(),
    			'updated_at' => Carbon::now()
			],[
    			'name' => '花园城五期',
    			'company_id' => 5,
    			'address' => '上海市嘉定区花园城五期',
    			'longitude' => 120.64366,
    			'latitude' => 35.32444,
    			'radius' => 300,
    			'created_at' => Carbon::now(),
    			'updated_at' => Carbon::now()
			],
		];

    	DB::table('projects')->insert($projects);
    }
}
